<template>
  <div class="content">个人资料</div>
  <div class="profile">
    <div class="info">
      <div class="label">头像：</div>
      <el-avatar :size="60" :src="userInfo.avatar"></el-avatar>
    </div>
    <div class="info">
      <div class="label">用户名：</div>
      <div class="detail">{{ userInfo.name }}</div>
    </div>
    <div class="info">
      <div class="label">签名：</div>
      <div class="detail">{{ userInfo.introduction }}</div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { reactive } from "vue";

const userInfo = reactive({
  name: "Gospel",
  avatar: "https://avatars.githubusercontent.com/u/57653565?v=4",
  email: "",
  phone: "",
  address: "",
  company: "",
  department: "",
  position: "",
  introduction: "凡是过往，皆为序章。",
});
</script>

<style scoped lang="scss">
.content {
  width: 100%;
  height: 60px;
  line-height: 60px;
  background: #ededed;
}
.info {
  height: 50px;
  line-height: 50px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 10px;
  .label {
    font-size: 16px;
    font-weight: bold;
  }
}
</style>
